$(function () {
    $.ajax({
        url: "/api/collect/list",
        method: "GET",

        data: {
            typeId: 0,
        },
        success: (res) => {
            // console.log(res.data);
            var htmlStr = template('tpl-table', res.data)
            $('.collect-list').html(htmlStr)
        },
    });

    $('#collect-list').on('click', '#item', function (e) {
        e.preventDefault()
        location.href = './goods.html'
    })
})